import vue from 'vue'
import vueRouter from 'vue-router'

vue.use(vueRouter)

const routes=[
    {
        path:"/",
        redirect:'/index'
    },{
        path:'/index',
        component:()=>import('../views/index.vue')
    }
]
const router=new vueRouter({
    routes
})

export default router